import 'package:flutter/material.dart';

class NoScrollListView extends ListView {
  NoScrollListView()
      : super(
          // 使ListView按照内容包括，而不是尽可能占据最大空间
          shrinkWrap: true,
          physics: NeverScrollableScrollPhysics(),
          // 去除shrinkWrap带来的默认padding
          padding: EdgeInsets.zero,
        );
}
